﻿using OSharp.Entity;
using Starzero.Plugins.RevitApp.Entities;
using System;
using System.Data;
using System.Linq;
using Dapper;
using Starzero.Framework.Utility.Data;

namespace Starzero.Plugins.RevitApp
{
    public class ExampleService : IExampleContract
    {
        private readonly IRepository<Example, Guid> _exampleRepository;
        public ExampleService(IRepository<Example, Guid> exampleRepository)
        {
            _exampleRepository = exampleRepository;
        }

        public IQueryable<Example> Examples => _exampleRepository.Query();

        public DataTable DataList()
        {
            DataTable dt = new DataTable();

            using (var conn = DapperService.GetConnection())
            {

            }

            return dt;
        }
    }
}

